-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Remove mypy from pre commit #35066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Remove mypy from pre commit #35066
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
are we sure we really want to do this? whats going to happen is that mypy issues will just happen on the CI, which is much later in the process. |
I don't have a strong point of view but the current usage of mypy is very limited in scope and can in a lot of cases yield a different result than CI anyway. I do think a full mypy run pre-push would be a good compromise instead of a partial run every commit just not sure how feasible that is |
This issue is still a thing and for now I solve this with Just for my understanding, we can't solve the error messages which are occuring now? That would be the most desirable solution right? |
cc @simonjayhawkins could this be resolved by ensuring that we have the same version of mypy run locally as on the CI? |
AFAIK mypy runs fine locally with mypy 0.730 (although with other packages adding types e.g. pytest, probably need to make sure local environment matches environment on ci). for ci the dev enviroment is used. i.e. environment.yaml as far as the pre commit is concerned, I'm on Windows and didn't seem to work out of the box and not spent any time looking any further. |
@simonjayhawkins I saw that there were some changes concerning mypy, is PR still relevant? |
I'm not really aware of the issues here, as I don't use pre commit, so I'm not the right person to ask/comment. |
Let's just remove it. We can try again once it's more mature. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff